Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar.Monitor Namespace / BasicLogMessage Class / BasicLogMessage Constructor / BasicLogMessage Constructor(LogMessageSeverity,String,String,Int32,String,String,Object[])
The severity of the log message.
The name of the logging system the message was issued through, such as "Trace" or "Gibraltar".
The logging category or application subsystem category that the log message is associated with, such as "Trace", "Console", "Exception", or the logger name in Log4Net.
The number of stack frames to skip over to find the first candidate to be identified as the source of the log message.
A simple single-line message caption. (Will not be processed for formatting.)
Additional multi-line descriptive message (or may be null) which can be a format string followed by corresponding args.
A variable number of arguments referenced by the formatted description string (or no arguments to skip formatting).

BasicLogMessage Constructor(LogMessageSeverity,String,String,Int32,String,String,Object[])
Creates a BasicLogMessage object with default LogWriteMode behavior and no attached Exception.
Syntax
'Declaration
 
Public Function New( _
   ByVal severity As LogMessageSeverity, _
   ByVal logSystem As String, _
   ByVal categoryName As String, _
   ByVal skipFrames As Integer, _
   ByVal caption As String, _
   ByVal description As String, _
   ByVal ParamArray args() As Object _
)
 

Parameters

severity
The severity of the log message.
logSystem
The name of the logging system the message was issued through, such as "Trace" or "Gibraltar".
categoryName
The logging category or application subsystem category that the log message is associated with, such as "Trace", "Console", "Exception", or the logger name in Log4Net.
skipFrames
The number of stack frames to skip over to find the first candidate to be identified as the source of the log message.
caption
A simple single-line message caption. (Will not be processed for formatting.)
description
Additional multi-line descriptive message (or may be null) which can be a format string followed by corresponding args.
args
A variable number of arguments referenced by the formatted description string (or no arguments to skip formatting).
Remarks
This constructor creates a BasicLogMessage with the default LogWriteMode behavior (Queued) and will also automatically look for any Exception passed among the params args and attach the first one found as the Exception object for this log message (if any).
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also